﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddBulletin.ascx.vb" Inherits="WebForm_ManageBulletin_AddBulletin" %>
<asp:FormView ID="fv" runat="server" DefaultMode="ReadOnly">
    <ItemTemplate>
        <table>
            
            <tr>
                <td align="right">
                    <asp:Label ID="lblBulletinSubject" runat="server" meta:resourcekey="lblBulletinSubject"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtBulletinSubject" runat="server" Text='<%# Bind("BulletinSubject") %>'  Width="400" MaxLength="100"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvBulletinSubject" runat="server" Display="None" ControlToValidate="txtBulletinSubject" meta:resourcekey="rfvBulletinSubject" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
                <td align="right">
                    <asp:Label ID="lblTopmost" runat="server" meta:resourcekey="lblTopmost"></asp:Label>
                </td>
                <td align="left">
                   <asp:DropDownList ID="ddlTopmost" runat="server">                        
                    </asp:DropDownList>
                </td>
            </tr>
            
   <%--         <tr>
                <td align="right">
                    <asp:Label ID="lblUserType" runat="server" meta:resourcekey="lblUserType"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlUserType" runat="server">                        
                    </asp:DropDownList>
                </td>
            </tr>--%>
            
            <tr>
                <td align="right">
                    <asp:Label ID="lblIssueDate" runat="server" meta:resourcekey="lblIssueDate"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtIssueDate" runat="server" Text='<%# Bind("issuedate_date") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvIssueDate" runat="server" Display="None" ControlToValidate="txtIssueDate" meta:resourcekey="rfvIssueDate" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cvIssueDate" runat="server" ControlToValidate="txtIssueDate" ValidationGroup="vInsert" SetFocusOnError="true" Type="Date" Operator="DataTypeCheck" meta:resourcekey="cvIssueDate"></asp:CompareValidator> 
                    <ajaxToolkit:CalendarExtender ID="ceStartDate" runat="server" TargetControlID="txtIssueDate"></ajaxToolkit:CalendarExtender> 
                </td>
            </tr>
            
            <tr>
                <td align="right">
                    <asp:Label ID="lblBulletinContent" runat="server" meta:resourcekey="lblBulletinContent"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtBulletinContent" runat="server" Text='<%# Bind("BulletinContent") %>' TextMode="MultiLine" Rows="5" Columns="50" MaxLength="500"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvBulletinContent" runat="server" Display="None" ControlToValidate="txtBulletinContent" meta:resourcekey="rfvBulletinContent" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
                <td align="right">
                </td>
                <td align="left">

                    <asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" CommandName="btnSave" ValidationGroup="vInsert" />
                    <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="btnSave" meta:resourcekey="cbSave"></ajaxToolkit:ConfirmButtonExtender>
                    <asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" CommandName="btnCancel" />
                </td>
            </tr>            
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="false" ValidationGroup="vInsert" />
    </ItemTemplate>
</asp:FormView>